import axios from 'axios';
import qs from 'querystring';

export const getDeviceInfo = params => {
  return axios.get(`/api/system/getDeviceInfo?${qs.stringify(params)}`);
};

export const getCert = () => {
  return axios.get('/api/system/getCert');
};

export const uploadCert = body => {
  return axios.post('/api/system/uploadCert', body);
};

export const clusterUploadCert = body => {
  return axios.post('/api/cluster/uploadCert', body);
};
